package com.cays.myresearch.entity;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Staffer extends Person{
    private String company;
    private String instruction;
    private long numbers;

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getInstruction() {
        return instruction;
    }

    public void setInstruction(String instruction) {
        this.instruction = instruction;
    }

    public long getNumbers() {
        return numbers;
    }

    public void setNumbers(long numbers) {
        this.numbers = numbers;
    }
    public Projects issuseProject(String title,String instruction,String type,
           String requestor,String location,String company){

        SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//设置日期格式
        String time=df.format(new Date());// new Date()为获取当前系统时间
        Projects p=new Projects(title,instruction,name,time,type,requestor,location,
                "已发布", company);
        return p;
    }
    public boolean editProject(){
        SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//设置日期格式
        String time=df.format(new Date());// new Date()为获取当前系统时间
        return false;
    }
    public boolean checkStudent(){
        SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//设置日期格式
        String time=df.format(new Date());// new Date()为获取当前系统时间
        return false;
    }
    public boolean deleteProject(){
        SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//设置日期格式
        String time=df.format(new Date());// new Date()为获取当前系统时间
        return false;
    }
    @Override
    public String toString() {
        return "(company, instruction, numbers, name, nick" +
                ", password, time) values (?,?,?,?,?,?,?)";
    }
}
